package 上课day1;

import java.util.HashSet;

public class project_demo9 {
	public static void main(String[] args) {
		HashSet<Person> hashSet = new HashSet<>();
		
		Person p1 = new Person("张三", 12);
		Person p2 = new Person("张三", 12);
		
		hashSet.add(p1);
		hashSet.add(p2);
		
		for (Person person : hashSet) {
			System.out.println(person.getName() + "****" + person.getAge());
		}
								
	}
}
